attachMetadataJson
readonly attachMetadataJson!: (
label: number | bigint,
metadataJson: any
) => TxBuilderRunner
label
:number
|bigint
;metadataJson
:any
;
like attachMetadata
,
adds a metadata entry for the given label
,
or overrides if the same label
was already present.
metadataJson
is a jsavascript value converted as follows
object
->TxMetadatumMap
array
->TxMetadatumList
string
->TxMetadatumText
(useattachMetadataJsonWithConversion
for explicit conversion toTxMetadatumBytes
, or consider usingattachMetadata
)number
->TxMetadatumInt
bigint
->TxMetadatumInt
returns a reference to the same TxBuilderRunner
.